package com.ztesoft.web.baseconfig.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ztesoft.core.common.Page;
import com.ztesoft.framework.exception.BaseAppException;
import com.ztesoft.framework.log.ZTEsoftLogManager;
import com.ztesoft.web.backup.service.BackUpService;
import com.ztesoft.web.baseconfig.db.po.DmPlanPO;
import com.ztesoft.web.baseconfig.service.IDmPlanService;
import com.ztesoft.web.cleanup.service.CleanUpService;



@Controller
@RequestMapping("/baseconfig/backUp")
public class BackUpController {

	private static final ZTEsoftLogManager logger = ZTEsoftLogManager.getLogger(BackUpController.class);

	@Autowired
	private BackUpService backUpService;
	
    @Autowired
    private CleanUpService cleanUp;

	@RequestMapping("backUp")
	public void backUp(int taskId,int strategyId) {
		try {
			cleanUp.cleanUp(taskId, strategyId);
		} catch (BaseAppException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}


}
